package br.edu.ufcg.lsd.wbis.ui.client.ui.loggedin.admin.leftmenu.user;

import br.edu.ufcg.lsd.wbis.ui.client.beans.UserInfo;
import br.edu.ufcg.lsd.wbis.ui.client.ui.loggedout.RegisterWindow;
import br.edu.ufcg.lsd.wbis.ui.client.ui.management.InfoManager;

import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.menu.BaseItem;
import com.gwtext.client.widgets.menu.event.BaseItemListenerAdapter;

public class AddUserItemListener extends BaseItemListenerAdapter{

	InfoManager<UserInfo> loggedManager = null;
	
	public AddUserItemListener(InfoManager<UserInfo> loggedManager) {
		this.loggedManager = loggedManager;
	}


	@Override
	public void onClick(BaseItem item, EventObject e) {
		new RegisterWindow(loggedManager);
	}
	
}
